import { createSlice } from "@reduxjs/toolkit";
import dayjs from "dayjs";
export const Cittper = createSlice({
  name: "Cittper",
  initialState: {
    date: dayjs().format("YYYY-MM-DD"),
  },
  reducers: {
    edit(state, { payload }) {
      state.date = payload.date;
    },
  },
});
// 每个 case reducer 函数会生成对应的 Action creators
export const { edit } = Cittper.actions;

export default Cittper.reducer;
